package com.zlzxm.studentscreen.net.http.api;


import com.zlzxm.studentscreen.net.http.request.RqBindDevice;
import com.zlzxm.studentscreen.net.http.request.RqDeviceStatus;
import com.zlzxm.studentscreen.net.http.request.RqDevice;
import com.zlzxm.studentscreen.net.http.response.BaseResponse;
import com.zlzxm.studentscreen.net.http.response.RpBindDevice;
import com.zlzxm.studentscreen.net.http.response.RpDeviceStatus;
import com.zlzxm.studentscreen.net.http.response.RpInfo;
import com.zlzxm.studentscreen.net.http.response.RpUnBindDevice;

import java.util.List;

import io.reactivex.Observable;
import retrofit2.http.Body;
import retrofit2.http.POST;

/**
 * Created by zlz
 * on  2020/11/12
 */
public interface MyApi {


    @POST("student-screen/get/sereen/info")
    Observable<BaseResponse<RpInfo>> info(@Body RqDevice rqDevice);


    @POST("student-screen/get/bind/status")
    Observable<BaseResponse<RpDeviceStatus>> status(@Body RqDeviceStatus status);

    //获取教室未绑定的设备列表
    @POST("student-screen/get/unbind/device/list")
    Observable<BaseResponse<List<RpUnBindDevice>>> unBindList( );

    //绑定设备
    @POST("student-screen/bin/device")
    Observable<BaseResponse<RpBindDevice>> bindDevice(@Body RqBindDevice rqBindDevice);

}
